package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
public class ActivityDto extends BaseDto {

    @NotBlank(message = "活动名称不能为空")
    @ApiModelProperty(value = "类型名称")
    private String name;

    @NotNull(message = "活动类型不能为空")
    @ApiModelProperty(value = " 活动类型 0 单品促销 1 满减")
    private Integer type;

    @ApiModelProperty(value = "活动时间")
    private Date[] time;

    @ApiModelProperty(value = "范围")
    private Integer scope;

    @ApiModelProperty(value = "活动地址")
    private String activityUrl;

    @ApiModelProperty(value = "活动状态")
    private Integer activityState;

    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序")
    private Integer orderNo;

    @ApiModelProperty(value = "商品ID")
    private Integer commodityId;
}
